home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Graphics / Gnuplot / Source / GnuplotPlot.h < prev    next >
Encoding:
Text File  |  1993-03-18  |  2.0 KB  |  102 lines

  1.  
  2. /* $Id: GnuplotPlot.h,v 1.1.1.1 1993/03/18 03:33:35 davis Exp $ */
  3.  
  4. #import <objc/Object.h>
  5. #import <appkit/Pasteboard.h>        /* NXAtom            */
  6. #import <dpsclient/event.h>        /* NXSize            */
  7.  
  8. #define UPDATE_NEVER    0        /* Constant update types    */
  9. #define    UPDATE_ALWAYS    1
  10. #define    UPDATE_NOT3D    2
  11.  
  12. @interface GnuplotPlot:Object
  13. {
  14.     id controller;            /* NXApp's delegate        */
  15.     id status;                /* gnuplot Status        */
  16.     id plotScrollView;            /* CellScrollView        */
  17.     id plotView;            /* PlotView            */
  18.  
  19.     id window;                /* Our window            */
  20.     id stringSet;            /* controller's string set    */
  21.  
  22.     NXZone *zone;            /* Our zone            */
  23.  
  24.     char *fullPath;            /* "UntitledXX" if untitled    */
  25.     BOOL isTitled;
  26.     char *readText;            /* Text read from a file    */
  27. }
  28.  
  29. + initialize;
  30. + setConstantUpdate:(int)updateType;
  31. + setHalvePlot:(BOOL)condition;
  32.  
  33. - init;
  34. - initFromFile:(const char *) filename;    /* Filename is full path    */
  35. - free;
  36.  
  37.  
  38. /*** Target/Action ***/
  39. - save:sender;
  40. - saveAs:sender;
  41. - saveTo:sender;
  42. - revertToSaved:sender;
  43. - close:sender;
  44. - print:sender;
  45.  
  46.  
  47.  
  48. /*** Setting Instance Variables ***/
  49. - setName: (const char *) name;
  50. - (const char *) name;
  51.  
  52. - setCurrentFont:aFont;        /* Awkward for this class to handle this */
  53. - currentFont;
  54.  
  55. - window;
  56. - status;
  57.  
  58.  
  59.  
  60. /*** Plotting ***/
  61. - plotFromFile:(const char *)aFullPath;
  62. - plot:sender;
  63. - reportScriptError: sender;
  64.  
  65. - addDataFile:(const char *)aPath;
  66.  
  67.  
  68.  
  69. /*** Document ***/
  70. - setDocEdited:(BOOL) state;
  71. - (BOOL) isDocEdited;
  72. - hideDocument:sender;
  73.  
  74.  
  75. /*** Services ***/
  76. - validRequestorForSendType:(NXAtom)sendType andReturnType:(NXAtom)returnType;
  77. - (BOOL)writeSelectionToPasteboard:pboard types:(NXAtom *)types;
  78.  
  79.  
  80.  
  81. /*** Autoupdate methods ***/
  82. - (BOOL)validateCommand:menuCell;
  83.  
  84.  
  85.  
  86. /*** Window Delegate Methods ***/
  87. - windowDidBecomeMain:sender;
  88. - windowDidMiniaturize:sender;
  89. - windowDidResignMain:sender;
  90. - windowDidResize:sender;
  91. - windowWillClose:sender;
  92. - windowWillResize:sender toSize:(NXSize *) frameSize;
  93.  
  94.  
  95.  
  96. /*** Status Delegate Methods ***/
  97. - settingsDidChange:sender;        
  98.  
  99.  
  100.  
  101. @end
  102.